#pragma once
#include<iostream>
#include<unistd.h>
#include<functional>


using fun_t = std::function<void()>;


struct myTask
{
    void DownLoad()
    {
        std::cout << "我是一个下载任务" << std::endl;
        sleep(5);
        std::cout << "下载完成" << std::endl;
    }

};